import request from "@/utils/request";

// 获取历史对话记录
export function getHistory(data) {
  return request({
    url: "/api/getHistory",
    method: "post",
    data,
  });
}

// 保存历史对话记录
export function saveHistory(data) {
  return request({
    url: "/api/saveHistory",
    method: "post",
    data,
  });
}

// 获取 sessionId
export function getUuid(data) {
  return request({
    url: "/api/getUuid",
    method: "post",
    data,
  });
}

// 获取所有历史对话
export function getAllHistory(data) {
  return request({
    url: "/api/getAllHistory",
    method: "post",
    data,
  });
}
